<?php
/**
 * Created by PhpStorm.
 * User: kb130
 * Date: 2017/9/8
 * Time: 15:06
 */

namespace util\validate\rules;

/**
 * 字符串长度在2个值之间
 * Class LengthBetween
 * @package util\validate\rules
 */
class LengthBetween extends BaseRule
{

    public function verify()
    {
        return mb_strlen($this->value) >= $this->params[0] && mb_strlen($this->value) <= $this->params[1];
    }
}